﻿//////////////////////////////////////////////////////////////////////////////
//
//  Copyright © 1998-2024 Glodon Company Limited.  All rights reserved.
//
//  Use of this software is subject to the terms of the Glodon license
//  agreement provided at the time of installation or download, or which
//  otherwise accompanies this software in either electronic or hard copy form.  
//
//////////////////////////////////////////////////////////////////////////////


#pragma once

#include "GcmpModelInterface.h"
#include "IEventArgs.h"
#include "ElementId.h"

namespace gcmp
{
    /// \brief 编辑模式事件类型
    enum class EditModeEventType : int32_t
    {
        Changed ///< 当前编辑模式发生变化  
    };

    /// \brief  编辑模式事件参数
    FINAL_INTERFACE class GCMP_MODEL_INTERFACE_EXPORT IEditModeEventArgs : public IEventArgs
    {
        DEFINE_CAST_DERIVED(gcmp::IEditModeEventArgs, gcmp::IEventArgs);
    public:

        /// \brief 获取编辑模式事件类型
        ///
        /// \return 编辑模式事件类型
        virtual EditModeEventType GetType() const = 0;

        /// \brief 获取编辑模式Id
        ///
        /// change 事件中代表旧编辑模式的id
        /// \return 编辑模式Id
        virtual ElementId GetEditModeId() const = 0;

        virtual ~IEditModeEventArgs() {}
    };
}
